package com.design.pattern.facade;

import com.design.pattern.facade.sub.SubBook;
import com.design.pattern.facade.sub.SubStudent;
import com.design.pattern.facade.sub.SubUser;

/**
 *门面类(持有子系统实例,然后封装调用子系统的方法)
 */
public class Facade {
    private SubUser user;
    private SubStudent student;
    private SubBook book;
    public Facade(){
        user=new SubUser();
        student=new SubStudent();
        book=new SubBook();
    }
    public void getUserSubBooks(){
        user.getUser();
        student.getStudent();
        book.getBooks();
    }
}
